package org.coco.mvc.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * SpringMvc使用拦截器的时候呢需要xml配置
 * SpringBoot使用拦截器也需要使用一个配置类，并使用@Configuration注解标记
 * 在这里我只用一个@Component注册为一个组件即可，可以让Spring扫描到
 */
public interface HandlerInterceptor {

    boolean preHandle(HttpServletRequest var1, HttpServletResponse var2, Object var3) throws Exception;

    void postHandle(HttpServletRequest var1, HttpServletResponse var2, Object var3) throws Exception;

    void afterCompletion(HttpServletRequest var1, HttpServletResponse var2, Object var3, Exception var4) throws Exception;
}
